import request from '../utils'


export let banner = () => {
    return request({
        url: "/api/banner/list",
        method: "GET",
    })
}

export let address = () => {
    return request({
        url: "/city/sortCity.json",
        method: "GET",
    })
}

export let nav = () => {
    return request({
        url: "/api/index/catelist",
        method: "GET"
    })
}

export let seckill = (count: number = 1, limitNum: number = 6) => {
    return request({
        url: "/api/pro/seckilllist",
        method: "GET",
        params: {
            count, limitNum
        }
    })
}

export let recommendlist = (count: number = 1, limitNum: number = 12) => {
    return request({
        url: "/api/pro/recommendlist",
        method: "GET",
        params: {
            count, limitNum
        }
    })
}

export let detail = (proid:any) => {
    return request({
        url: "/api/pro/detail/"+proid,
        method: "GET",
        params: {
            proid
        }
    })
}